package com.stone.business.workcard.pojo;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Transient;
/*
 * 班组作业控制卡（一种票）主表
 */
@Entity
@Table(name = "TAB_KZK")
public class MainWorkCardOne {
	private Long id_sno = Long.parseLong("0");
	private String pno;				//票号
	private String bxr;				//编写人
	private String sp;				//审批人
	private long pic_id;			//图片id
	private String check_tools;		//检查过的安全工具
	private String oc_yxbz;			//有效标志
	private Date dt_czrq;			//操作日期
	private String oc_czry;			//操作人员
	private String[] checked_tools; //前台用来显示的检查过的安全工具与前面的check_tools一样，只是这个是数组，那个是用‘,’隔开的往数据库传的
	private String sh_status;		//审核状态 0：审核未通过1：审核通过2：待审核
	private String sh_status_name;	//	审核通过名称 即 审核未通过   审核通过  待审核 ，这个中是用来前台显示，不进数据库
	private String oc_type;			//种类 1：一种票 2：二种票 
	private String planid;
	private Long cjrid;
	@Id
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SEQ_TAB_KZK01")
	@SequenceGenerator(name="SEQ_TAB_KZK01",allocationSize=1, sequenceName="SEQ_TAB_KZK01")
	public Long getId_sno() {
		return id_sno;
	}
	public void setId_sno(Long idSno) {
		id_sno = idSno;
	}
	public String getPno() {
		return pno;
	}	
	public void setPno(String pno) {
		this.pno = pno;
	}
	public String getBxr() {
		return bxr;
	}
	public void setBxr(String bxr) {
		this.bxr = bxr;
	}
	public String getSp() {
		return sp;
	}
	public void setSp(String sp) {
		this.sp = sp;
	}

	public String getCheck_tools() {
		return check_tools;
	}
	public void setCheck_tools(String checkTools) {
		check_tools = checkTools;
	}
	public String getOc_yxbz() {
		return oc_yxbz;
	}
	public void setOc_yxbz(String ocYxbz) {
		oc_yxbz = ocYxbz;
	}

	public String getOc_czry() {
		return oc_czry;
	}
	public void setOc_czry(String ocCzry) {
		oc_czry = ocCzry;
	}
	
	public Date getDt_czrq() {
		return dt_czrq;
	}
	public void setDt_czrq(Date dtCzrq) {
		dt_czrq = dtCzrq;
	}
	public long getPic_id() {
		return pic_id;
	}
	public void setPic_id(long picId) {
		pic_id = picId;
	}
	@Transient
	public String[] getChecked_tools() {
		return checked_tools;
	}
	public void setChecked_tools(String[] checkedTools) {
		checked_tools = checkedTools;
	}
	public String getSh_status() {
		return sh_status;
	}
	public void setSh_status(String shStatus) {
		sh_status = shStatus;
	}
	@Transient
	public String getSh_status_name() {
		return sh_status_name;
	}
	public void setSh_status_name(String shStatusName) {
		sh_status_name = shStatusName;
	}
	public String getOc_type() {
		return oc_type;
	}
	public void setOc_type(String ocType) {
		oc_type = ocType;
	}
	public String getPlanid() {
		return planid;
	}
	public void setPlanid(String planid) {
		this.planid = planid;
	}
	public Long getCjrid() {
		return cjrid;
	}

	public void setCjrid(Long cjrid) {
		this.cjrid = cjrid;
	}


}
